package org.xiaov.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

/**
 * <p>
 * Order实体类
 * </p>
 * 
 * @author xiaov
 * @date 2021-10-02 14:24:25
 */
@Data
@TableName("sharding_order")
public class Order implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Integer id;

	private BigDecimal amount;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createOn;

	private String createBy;

}
